package com.cskaoyan.javase.basic._2variable;

/**
 * 变量的使用细节
 * @since 17:26
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo3 {
    public static void main(String[] args) {
        int a = 10;
        long b = 10L;
        // 'long' literal '10l' ends with lowercase 'l'
        // long c = 10l;

        double c = 0.1;
        float d = 0.1F;
        float d1 = 0.1f;

        // 虽然Java语法允许一行定义多个相同数据类型的变量，但规范的Java代码禁止这样做！
        int a1 = 10, b1 = 20, c1 = 30;
        /*int a;
        int b = 10;
        int c;
        int d = 10;*/
    }
}
